home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / utilities / shell / zshell20.lha / ZShell20 / ZShell.doc < prev    next >
Encoding:
Text File  |  1994-07-02  |  71.1 KB  |  1,635 lines

  1.  
  2.             #============================================#
  3.             #    ZSHELL V1.30 (C) 1990,91 PAUL HAYTER    #
  4.             # updated to V2.0 (C) 1993,94 MARTIN GIERICH #
  5.             #============================================#
  6.  
  7. Last change: 16.06.94
  8. ------------------------------------------------------------------------
  9. INTRODUCTION
  10.  
  11.     This is the ZShell version 2.0 documentation.
  12.     It is a small, fast and powerful SHELL replacement.
  13.     Have a look at FEATURES to see the advantages.
  14.     ZShell is tested with Kickstart 1.3 , 2.04 and 3.0 and should
  15.     run also with other Kickstarts. There are no special requirements.
  16.     I tried to made usage similar to AmigaDOS. If you did not
  17.     understand something, have a look at your AmigaDOS usermanual.
  18.     To use the ONLINE-HELP start ZShell from Workbench or CLI/Shell
  19.     and press the HELP key.
  20. ------------------------------------------------------------------------
  21. FEATURES
  22.  
  23.     *  About 25K small (pure assembler code).
  24.     *  Supports the standard housekeeping commands which are builtin,
  25.        so no disk access is necessary.
  26.        eg. list, dir, cd, rename, makedir, delete, copy, path, info, type
  27.     *  A total of 63 builtin commands.
  28.     *  Online HELP function and documentation with examples.
  29.     *  Filenamecompletion by simply pressing a key.
  30.     *  Command line editing better than KS2.0 .
  31.     *  Command line history with searching.
  32.     *  Function key aliasing.
  33.     *  Command aliasing.
  34.     *  Starting from Workbench or CLI/Shell.
  35.     *  Colorful output if more than 2 bitplanes available.
  36.     *  Script file execution and special script commands (like IF, ASK).
  37.     *  Wild Card file descriptions (*,?,~,[],|).
  38.     *  Simple 'More' type text viewer.
  39.     *  Has a kind of Memory-Clock with alarm (!).
  40.     *  Makes itself resident for quicker starting and memory saving.
  41.     *  Reverse Polish Calculator.
  42.     *  Can examine the KickTagPtr, CoolCapture etc. and reset them.
  43.     *  Some commands and features for debugging system/programs.
  44. ------------------------------------------------------------------------
  45. CONTENTS
  46.  
  47.     Introduction
  48.     Features
  49.     Contents
  50.     Distribution
  51.     Starting ZShell
  52.     History & Command Line Editing
  53.     Executing Commands
  54.     Wild Cards
  55.     Filenamecompletion
  56.     Input/Output Redirection
  57.     Special Characters
  58.     Builtin Commands
  59.         ...
  60.     Builtin Commands for Programmers and Advanced Users
  61.         ...
  62.     Tips & Hints
  63.     Possibilities for Future Improvements
  64.     History
  65.     Copyright
  66.     Disclaimer
  67.     Credits
  68.     Correspondence & Bug Reports
  69. ------------------------------------------------------------------------
  70. DISTRIBUTION
  71.  
  72.     Following files belong to this document:
  73.     1) ZShell           The main executable
  74.     2) ZSH              The small starter
  75.     3) ZShell.doc       This documentation (and online help manual)
  76.     4) ReadMe           Short description
  77.     5) ZShell.s         Source code of the main executable
  78.     6) ZSH.s            Source code of the small starter
  79.     7 - 12)             The corresponding icons
  80. ------------------------------------------------------------------------
  81. STARTING ZSHELL
  82.  
  83.   * There are three ways of starting ZShell:
  84.     1. The easiest way:
  85.        Start the file called 'ZShell' from Workbench or CLI/Shell.
  86.     2. Put the file called 'ZShell' in the C: directory and
  87.        start the file called 'ZSH' from Workbench or CLI/Shell.
  88.     3. A bit complicated and only for starting from Workbench:
  89.        Make a startup script (see below) or an empty file with a PROJECT
  90.        icon. Change the default tool to 'ZSH' or 'ZShell' (better ZSH,
  91.        but put ZShell in C: ) with the right path. Doubleclicking on
  92.        this project icon will start ZShell and execute its script.
  93.        You can also shift-doubleclick a startup script with ZSH/ZShell.
  94.     (You can rename 'ZSH' as what you like, but do not rename 'ZShell').
  95.     The first way is recommended for having a quick glance at ZShell,
  96.     but if you use ZShell sometimes, the second way is better.
  97.     Why ? Because 'ZSH' is about 700 Byte long and starts the ZShell-
  98.     resident if possible. So loading 'ZShell' is only necessary the first
  99.     time you use ZShell after booting up.
  100.   * If starting from CLI/Shell you can specify the name of a script file
  101.     (see EXECUTE) as an argument which will be executed after starting.
  102.     If there is no name given, ZShell will try to execute S:ZStart .
  103.     eg.     ZSH ram:hello       {will try to execute ram:hello}
  104.             ZShell              {will try to execute S:ZStart}
  105.   * If starting from Workbench you can specify the window-description
  106.     and the startup script (default S:ZStart , see above) with ToolTypes:
  107.     eg.     WINDOW=con:20/50/400/100/Moin
  108.             SCRIPT=ram:hello
  109.     Make sure that WINDOW and SCRIPT are in capital letters.
  110.     (You can edit the ToolTypes by selecting an icon and then choosing
  111.     'Information' from the Workbench menu.)
  112.   * NOTE: ZShell and ZSH are PURE (see RESIDENT,PROTECT).
  113. ------------------------------------------------------------------------
  114. HISTORY & COMMAND LINE EDITING
  115.  
  116.     ZShell has a 1024 byte circular history buffer. It works similar
  117.     to most other shells, the NEWCON: handler in Workbench V1.3 and
  118.     the standard console handler in Kickstart 2.0+.
  119.  
  120.     UP ARROW        - go back one line in the history buffer.
  121.     DOWN ARROW      - go forward one line in the history buffer.
  122.     SHIFT UP ARROW  - go to the 1st line in the history buffer if nothing
  123.                       was typed. Otherwise the string left of the cursor
  124.                       will be searched in history buffer. (like KS2.0+)
  125.     SHIFT DOWN ARROW- go to the last line in the history buffer, which
  126.                       should be blank.
  127.     LEFT ARROW      - move cursor left.
  128.     RIGHT ARROW     - move cursor right.
  129.     SHIFT LEFT ARROW- move cursor to left end.
  130.     SHIFT RIGHT ARROW move cursor to right end.
  131.  
  132.     CTRL S          - move cursor to start of line.
  133.     CTRL E          - move cursor to end of line.
  134.     TAB             - move cursor to start of next word
  135.     SHIFT TAB       - move cursor to start of last word
  136.  
  137.     CTRL X          - delete whole line.
  138.     CTRL Q          - delete one word right of cursor
  139.     CTRL W          - delete one word left of cursor
  140.     CTRL L          - clear the ZShell window
  141.  
  142.     ESC (Escape)    - quit ZShell like ENDCLI (I like this very much !).
  143.     CTRL A          - see FILENAMECOMPLETION .
  144.     SHIFT RETURN    - like typing '^' and 'J', useful for ECHO.
  145.  
  146.     Words are delimited by space, point, slash and colon ( ./:).
  147.     Again, command line editing is similar to most shells. Backspace,
  148.     delete and return do what they are supposed to do.
  149. ------------------------------------------------------------------------
  150. EXECUTING COMMANDS
  151.  
  152.     Most commands can be aborted by depressing Control-C.
  153.     Nearly everything is case independent.
  154.     To use a disk command simply type its name after the prompt, the
  155.     same way as you would do in other shells. The first part of the input
  156.     up to the first space is interpreted as commandname. It is searched
  157.     for (in this order) :
  158.         1. in the alias list (see ALIAS)
  159.         2. in the internal (builtin) command list (see BUILTIN COMMANDS)
  160.         3. in the resident command list (see RESIDENT)
  161.         4. in the current directory (see CD)
  162.         5. in the command search path (see PATH)
  163.     and, if it is found, it is executed. The part after the first space
  164.     is taken as arguments, also called parameters. The arguments are
  165.     separated by spaces. ZShell will allow up to 25 arguments.
  166.     If the commandname is a directory, the current directory will be
  167.     changed (see CD).
  168.  
  169.     eg.     addbuffers df0: 15
  170.     'addbuffers' is the command, that will be found as a internal command.
  171.     'df0:' is the first argument. '15' is the second argument. The third
  172.     argument does not exist.
  173.  
  174.     You can avoid using an alias or an internal (builtin) command or
  175.     changing the current directory by typing a point before the
  176.     commandname (this is called 'force disk').
  177.     To abbreviate internal or resident commands put a point behind it.
  178.     If you use just a point, the current directory will be set to the
  179.     last current directory ('dir back').
  180.  
  181.     eg.     .addbuffers df0: 20
  182.     {This uses the disk command or if available the resident addbuffers}
  183.             ad. df0: 20  {uses the internal addbuffers command}
  184.             .ad. df0: 20 {if available this uses the resident addbuffers}
  185.             .            {go back to old current dir}
  186.  
  187.     BEWARE of other matching commands! The first matching will be taken!
  188.     res. can mean reset or resident, but reset will be taken !
  189.     There is no abbreviation for disk commands, take FileNameCompletion
  190.     ( CTRL-A ) instead.
  191.  
  192.     A textual error message will be displayed if an AmigaDOS error
  193.     occurs.
  194. ------------------------------------------------------------------------
  195. WILD CARDS
  196.  
  197.     ZShell supports wild card file descriptions on some commands
  198.     (DIR, LIST, DELETE, COPY, RECOPY, CTRL). Wild cards are like those
  199.     supported on MS-DOS (tm) or UNIX (tm) systems, and not the same as
  200.     the ones on AmigaDOS. So use * instead of #? .
  201.     NOTE: You can only effectively put one * character in a wild card.
  202.  
  203.     Character       Meaning
  204.        *         Match zero or more characters.
  205.        ?         Match one character.
  206.        ~         Negates the following wildcard.
  207.       [  ]       Specifies a class of characters to match.
  208.                  (One of the characters in the brackets must match)
  209.        |         Separate multiple filenames (can be wildcards)
  210.                  (One of the file descriptions separated by | must match)
  211.  
  212.     To get that just try the examples following and try it out with DIR.
  213.     eg.    list *.info      {lists all files ending in .info}
  214.            dir z*.s         {lists all files starting z, ending in .s}
  215.            delete df0:*.info   {deletes all .info files from df0:}
  216.            copy *.s ram:    {copies all .s files to ram:}
  217.            copy 1? df0:     {copies all two char files beginning with 1}
  218.            dir ~*.s         {lists all files NOT ending in .s}
  219.            list ~*.info     {lists all files except for .info files}
  220.            dir *.[co]       {lists files ending in .c or .o}
  221.            list [abcd]*     {lists files beginning with a,b,c or d}
  222.            list c:mount|version {lists the files Mount and Version}
  223.            list ram:env/a*|*b   {lists all files starting with a or
  224.                              ending with b from RAM:env (environment)}
  225.            copy ~*.info|*.bak   {copies all files NOT ending in .info
  226.                                  and NOT ending in .bak}
  227. ------------------------------------------------------------------------
  228. FILENAMECOMPLETION
  229.  
  230.     Filenamecompletion makes typing long filenames and directorynames
  231.     easier. It does not matter if you want to type it as command or as
  232.     argument. Just type some beginning characters of the desired name and
  233.     then press CTRL-A . If there is more than one possibility that
  234.     match, it will only be completed as far as all possibilities match.
  235.     In this case type the next character then again press CTRL-A . If a
  236.     filename was fully matched, a space after it will be inserted. If
  237.     a directoryname was fully matched, a slash (/) will be inserted after.
  238.     Maybe you do not want *.info files to be completed. This will avoid
  239.     some trouble. Use 'ctrl -c *.info' for that or see CTRL.
  240.     To use an other key (like TAB) instead of CTRL-A , see CTRL.
  241.  
  242.     For example a directory contains:
  243.         MegaEditExample
  244.         MegaEditExample.info
  245.         MegaViewer
  246.         MoreMegaFiles               {directory}
  247.  
  248.     If you want to change the current directory to MoreMegaFiles you type:
  249.         mo
  250.     then press the CTRL key with the A key. You will see the full name
  251.     with a slash at the end. Just press RETURN and you changed it.
  252.     To delete MegaViewer you type:
  253.         delete me
  254.     and press CTRL-A. You will see 'Mega'. Now type the V key and
  255.     press CTRL-A again. You see 'delete MegaViewer '. Press RETURN and
  256.     it will be gone.
  257.     You want to start MegaEditExample. Type:
  258.         me
  259.     and press CTRL-A. Then type E and press CTRL-A. There is no space
  260.     after the name. This is because MegaEditExample.info also matches.
  261.     Start it by pressing RETURN.
  262. ------------------------------------------------------------------------
  263. OPTIONS
  264.  
  265.     The internal commands support only three options, because this is
  266.     easier to remember. These options start with a dash (-) .
  267.     1. -C or -CLEAR , used by AVAIL,ENDCLI,LOCATE,PATH,RESIDENT,CTRL
  268.     2. -R or -RECURSIVE , used by COPY,DELETE,LIST,RECOPY
  269.     3. -Q or -QUICK , used by DIR,LIST
  270.     So instead of typing 'dir -q' you can also type 'dir -quick'.
  271.     As nearly everything, options are also case independent.
  272. ------------------------------------------------------------------------
  273. INPUT/OUTPUT REDIRECTION
  274.  
  275.     The standard redirection operators are supported for all internal
  276.     commands, as well as disk based programs. (Redirection only affects
  277.     those programs which use the dos.library's Input() and Output()
  278.     functions.)
  279.  
  280.         >  redirect std output.
  281.         <  redirect std input.
  282.         >> append redirect output. (tacks output onto the end of file)
  283.  
  284.     eg.    dir >ram:directory df0:c
  285.            type zshell.doc <raw:0/0/100/100/input >raw:0/0/640/100/output
  286.            sortfile things >>df0:things.log
  287. ------------------------------------------------------------------------
  288. SPECIAL CHARACTERS
  289.  
  290.     The following characters have special meanings to ZShell.
  291.  
  292.      "  "   Double quotes. Used to enclose strings with spaces.
  293.             eg "hello world".
  294.      ^n     Hat character. Prefixes a control character letter (n).
  295.             Used in ASK, ECHO, & ALIAS commands. eg ^L   <-clear screen
  296.      %n     Percent prefixes a number (0-7) to specify an optional
  297.             parameter for command aliases. Used in ALIAS command.
  298.             Can also be used to specify prompt arguments. See PROMPT.
  299.      $n     Dollar prefixes a number (0-7) and corresponds to an
  300.             optional parameter specified with %n (above).
  301.      *?~[]| Wildcard characters. * matches 0 to n characters. ? matches
  302.             one character, ~ negates the following wild card, and [ ]
  303.             surround a class of characters to match. See WILD CARDS.
  304.      \n     Backslash prefixes a special character, whose meaning you
  305.             want ignored. eg.  echo "hello \"fred\""  (hello "fred")
  306.      ;      Semi-colon seperates multiple commands on one line.
  307.             eg. cd df1:;dir
  308.      >      redirect output.
  309.      <      redirect input.
  310.      >>     redirect append output.
  311. ------------------------------------------------------------------------
  312. BUILTIN COMMANDS :
  313. ==================
  314. Following there are descriptions of the standard commands which are
  315. builtin in ZShell (and therefore need not be loaded from disk).
  316. Square brackets [] mean that the argument enclosed in is optional.
  317. A vertical bar | separates multiple possibilities, choose only one.
  318. ------------------------------------------------------------------------
  319. ADDBUFFERS drive number_of_buffers
  320.  
  321.     * ADDBUFFERS increases disk access speed on the specified drive by
  322.       adding a number of sector cache buffers. Each additional buffer
  323.       reduces memory by about 560 bytes. Generally, 25-30 buffers per
  324.       floppy drive is optimal.
  325.  
  326.     eg.     addbuffers df0: 25
  327.             addbuffers df1: 30
  328. ------------------------------------------------------------------------
  329. ALIAS [variable] [definition]
  330.  
  331.     * ALIAS assigns a variable name to a definition. The variable name
  332.       can be up to 15 characters long, and the definition can be up to
  333.       about 360 (250) characters long.
  334.  
  335.     * Function Keys
  336.     eg.     alias f1 "ed df0:s/startup-sequence^M"
  337.       This example assigns the unshifted F1 key to the text enclosed in
  338.       quotes. Note that the ^M characters puts an auto carriage return
  339.       in the definition.
  340.     eg.     alias F10 "cd df0:^M"
  341.       This sets shifted F10 to 'cd df0:<CR>'.
  342.  
  343.      Other egs.     alias f2 "cd df1:^M"
  344.                     alias f4 "genim2 "
  345.                     alias F9 "scribble df0:text/"
  346.                     alias f1 "a68k z.a;blink z.o to z^M"
  347.  
  348.     * The secondary use of ALIAS is to assign command aliases.
  349.     eg.     alias mv rename
  350.       This allows an alternate name for rename. i.e. mv.
  351.       So you could type
  352.             mv oldname newname      {to rename oldname to newname}
  353.  
  354.     eg.     alias as a68k
  355.             alias pp powerpacker
  356.             alias go "a68k zsh.s;blink zsh.o to zsh"
  357.             alias cped "copy df0:c/ed"
  358.       You would use this last alias, if you need to copy a particular
  359.       file a lot. So, to copy c/ed to ram: use:-
  360.             cped ram:
  361.  
  362.     * You can also pass external parameters to an alias.
  363.     eg.     alias al  "%1 a68k $1.s;blink $1.o to $1"
  364.     Typing
  365.                     al test
  366.     will assemble test.s using a68k, then blink test.o to become test.
  367.  
  368.     You can specify upto eight parameters to pass to a command alias.
  369.     At the start of the alias definition, specify the parameters to pass
  370.     with the variables %0 thru %7. These need not be in sequence. The
  371.     first %n will be assigned to the first parameter, the 2nd %n to
  372.     the 2nd parameter etc.
  373.     Insert the corresponding variables $0 thru $7 at the points in the
  374.     alias definition where that parameter is to appear.
  375.     eg.     alias disp "%1 %2 %3 echo \"$3 $2 $1\""
  376.             alias cram "%0 %1 %2 %3 copy $0 $1 $2 $3 ram:"
  377.             alias go "%5 %1 %6 %2 echo \"1st-$5 2nd-$1 3rd-$6 4th-$2\""
  378.  
  379.     * Command aliases can be nested to 1 level.
  380.     eg.     alias clear "echo ^L";alias cdir "%1 clear;cd $1;dir"
  381.  
  382.     * An important point about aliases, is that you can redefine the
  383.       existing internal command names.
  384.     eg.     alias help "type help_screen"
  385.       This would make it so that pressing HELP or typing H E L P would
  386.       not generate the standard help command list, but would type the
  387.       file called  help_screen to the screen. Similarly
  388.     eg.     alias copy c:copy
  389.             alias info c:dfree
  390.             alias assign .assign
  391.  
  392.     * Typing ALIAS with no parameters at all, will generate a list of all
  393.       current alias definitions.
  394.     eg.     alias
  395.  
  396.     * See UNALIAS for how to remove alias definitions.
  397. ------------------------------------------------------------------------
  398. ASK [question]
  399.  
  400.     * ASK prompts the user with a question requiring a Yes or No
  401.       answer. If the first letter of the users response is 'Y', ASK
  402.       returns code WARN. Responding 'E' returns ERROR, 'F' returns
  403.       FAIL. Any other letter will result in return code OK.
  404.       The question can include ASCII characters as well as control
  405.       codes as per the ECHO command.
  406.  
  407.     eg.     ask "Do you want commands copied to ram? "
  408.             if warn
  409.                     copy c: ram:
  410.             endif
  411.  
  412.     Note: You can redirect the ANSWER to a file by redirecting the
  413.       OUTPUT.
  414.     eg.     ask >ENV:CallIt        {The answer is written to CallIt}
  415. ------------------------------------------------------------------------
  416. ASSIGN [logical name:] [directory]
  417.  
  418.     * ASSIGN will assign a logical device name (must end in a colon (:) )
  419.       to a disk directory.
  420.  
  421.     eg.     assign z: df1:zshell_source
  422.     Now if you do a DIR Z: you will get a directory of df1:zshell_source.
  423.     Similarly, the default device names can be reassigned.
  424.     eg.     assign libs: df1:libs
  425.  
  426.     * Typing ASSIGN with no parameters, will list the current device
  427.       assignments.
  428.     eg.     assign
  429.  
  430.     ASSIGN is compatible with the AmigaDOS Assign command.
  431. ------------------------------------------------------------------------
  432. AVAIL [-C]
  433.  
  434.     * AVAIL shows the available memory as:
  435.     1.Total chip memory free,
  436.     2.Total fast memory free,
  437.     3.Total memory free.
  438.  
  439.     * With option '-c' given, it tries to free unused memory
  440.       (remove unused libraries, devices and the help manual)
  441.  
  442.     eg.     avail
  443.             avail -c
  444. ------------------------------------------------------------------------
  445. BORDER ON|OFF [number]
  446.  
  447.     * Switches the border of the window on or off. If the border is off
  448.       there will fit some more characters in a line; this can be useful
  449.       when viewing texts with MORE.
  450.     * If you run Kickstart 1.3, you should do a 'CLS' or 'echo ^L' after
  451.       using BORDER OFF.
  452.     * If you specify a number after ON or OFF, the window is resized as
  453.       large as possible. The number means the wanted distance of the
  454.       window top to the screen top in pixels. By specifying a negative
  455.       value the window will just not hide the screens menu bar.
  456.  
  457.     eg.     border off
  458.             border on 0         {fills full screen}
  459.             border off -1       {does not hide the menu bar}
  460.             border on 10;cls    {with KS 1.3}
  461. ------------------------------------------------------------------------
  462. CD [destination]
  463.  
  464.     * Changes the current directory to 'destination'. If no parameter
  465.       is given, the current directory's name is shown. It is easier to
  466.       change the directory by simply typing its name (without CD).
  467.  
  468.     eg.     cd ram:
  469.             ram:t               {same as 'cd ram:t'}
  470. ------------------------------------------------------------------------
  471. CLS
  472.  
  473.     * CLS clears the window.
  474.       It also resets the consolehandler, so if you see lots of funny
  475.       characters on the window, try CLS.
  476.     * You can do the same by using 'echo ^[c'.
  477.     * CTRL L only clears the window (same as 'echo ^L').
  478.  
  479.     eg.     cls
  480. ------------------------------------------------------------------------
  481. COPY [-R] sourcefile1 [sourcefile2] [sourcefile3] ... destination
  482.  
  483.     * There are 6 derivatives of the copy command :
  484.  
  485.      1. copy file to file.
  486.             eg.     COPY C:LIST RAM:LS
  487.      2. copy file to a directory.
  488.             eg.     COPY C:MOUNT DF1:C
  489.      3. copy multiple files to a directory.
  490.             eg.     COPY L:PORT-HANDLER L:DISK-VALIDATOR DF1:L
  491.      4. copy files in a directory to another directory.
  492.             eg.     COPY C: DF2:C
  493.      5. copy multiple directories to a single directory.
  494.             eg.     COPY L: DEVS: C: RAM:
  495.      6. Recursively copy all files and subdirectories within the source
  496.         directory to the destination directory.
  497.             eg.     COPY -R DF0: DF1:
  498.  
  499.     Other examples:
  500.     eg.     copy fred wilma
  501.     eg.     copy c:dir df1:c
  502.     eg.     copy dir list type cd df1:c
  503.     eg.     copy -r df0:devs df1:devs
  504.     eg.     copy -r source:*.s ram:
  505.             copy df0: df1:          {only copy the files in df0: to df1:}
  506. ------------------------------------------------------------------------
  507. DATE [hh:mm:ss|dd.mm.yy|mm-dd-yy]
  508.  
  509.     * DATE without arguments shows the actual date and time (systemtime).
  510.     * You can specify one or two arguments to set date or time or both.
  511.       The time format must be in HOUR:MINUTE:SECOND . Do not forget the
  512.       colon (:) between. Give only one or two digit numbers.
  513.       There exists two formats for setting the date. First is
  514.       DAY.MONTH.YEAR . Second is MONTH-DAY-YEAR . Use only one or two
  515.       digit numbers.
  516.  
  517.     eg.     date
  518.             date 14:15:00         {quarter past two PM}
  519.             date 12.5.94          {12th of May in 1994}
  520.             date 3-30-88 8:12:45  {30th of March in 1988 in the morning}
  521. ------------------------------------------------------------------------
  522. DELETE [-R] source1 [source2] [source3] [source4]...
  523.  
  524.     * Deletes one or more files or directorys ('source1','source2',...).
  525.     * If you specify the -r option when deleting a directory, then all
  526.       subdirectories are recursively deleted also. Otherwise (if the -r
  527.       option is not given) only the files in the specified directory are
  528.       deleted.
  529.     WARNING: You can hardly get back what you have deleted !
  530.              So be careful, especially when using the -r option !
  531.        (Try DISKSALV for getting lost files back, DO NOT use DISCDOCTOR)
  532.  
  533.     eg.     delete fred wilma barney betty dino
  534.             delete df0:devs df1:c df1:data ram:
  535.             delete menu
  536.             delete -r devs:
  537.             delete -r df1:  {better use 'format drive df1: name x quick'}
  538. ------------------------------------------------------------------------
  539. DIR [-Q] [source]
  540.  
  541.     * Lists the directory of the 'source' to the screen. Hitting space
  542.       will pause the listing and backspace will continue it. Files are
  543.       shown with their size in bytes. DIR lists the current directory
  544.       if no parameter is given. If 'source' is a filename, then only
  545.       that file is listed. If the option '-q' is not given, the filenames
  546.       will be sorted alphabetically.
  547.     * All files/dirs with the H-bit (see PROTECT) set, will not be shown.
  548.  
  549.     eg.   dir df0:
  550.           dir -q devs:printers/hp*
  551. ------------------------------------------------------------------------
  552. ECHO [string]
  553.  
  554.     * Prints the 'string' to the screen. If you want spaces in the
  555.       string, make sure the whole string is enclosed in quotes. If you
  556.       want to print special control characters (eg. ctrl-L clear screen)
  557.       then prefix the control letter with a ^ character. If you want to
  558.       print double quotes, then use the \ character before the qoutes.
  559.       If you want to print some special characters like the CSI ($9B),
  560.       you can put a (hexa-)decimal number after the ^ character; you can
  561.       separate it from the next character by a point (.) . Do not forget
  562.       the ^J at the end of a line.
  563.  
  564.     eg.     echo hello^J
  565.             echo "hello world"
  566.             echo "^Lthe screen was just cleared^J"
  567.             echo "^Lline 1^Jline 2^Jline 3^J"
  568.             echo "these are double quotes ->\"^J"
  569.             echo ^$9b.33mColor^$9b.32mful^J
  570.             echo ^$9b.4mUnderlined^$9b.0mNormal^J
  571.  
  572.     * Some common control codes are:
  573.       ^7    ^G      bell (makes a DisplayBeep)
  574.       ^10   ^J      linefeed.
  575.       ^12   ^L      clear screen.
  576.       ^13   ^M      carriage return.
  577.       ^24   ^X      clear line.
  578.       ^27   ^[      escape.
  579.       ^$9b          CSI (command sequence introducer).
  580. ------------------------------------------------------------------------
  581. ELSE
  582.  
  583.     * ELSE marks the middle of an IF statement. All statements
  584.       following it, and before the ENDIF statement will be executed
  585.       only if the IF condition is FALSE. See IF for usage.
  586.  
  587. ------------------------------------------------------------------------
  588. ENDCLI [-C]
  589.  
  590.     * Exits you from ZShell back to the AmigaDOS CLI prompt or Workbench.
  591.     * If the option '-c' was specified, it will clear ZShell as a
  592.       resident: only in low memory situations needed.
  593.     * Instead of using ENDCLI you can simply press the ESC key or click
  594.       on the close gadget, if available.
  595.  
  596.     eg.   endcli
  597.           endcli -c
  598. ------------------------------------------------------------------------
  599. ENDIF
  600.  
  601.     * ENDIF marks the end of an IF statement. See IF for usage.
  602.  
  603. ------------------------------------------------------------------------
  604. EVAL expression
  605.  
  606.     * EVAL evaluates the 'expression' as a reverse polish expression,
  607.       and displays the answer in decimal and hex notation. Reverse
  608.       Polish Notation (RPN) is used in Forth and in Hewlett Packard
  609.       calculators (the best calculators in the world). It is based on
  610.       how arithmetic is actually done at the lowest possible level.
  611.       RPN allows calculating complex expressions without using brackets.
  612.  
  613.     eg.     eval 4 5 +
  614.       This gives the answer 9. When a number is found, it is 'pushed'
  615.       onto the arithmetic stack. The + always adds the last two numbers
  616.       on the stack.
  617.  
  618.     eg.     eval 7 2 3 + -
  619.       This gives the answer 2. It is the same as (7 - (2 + 3)). See,
  620.       7 is first pushed onto the stack, followed by 2, then 3. The +
  621.       adds together the 2 and 3 and leaves the result 5 on the stack.
  622.       Which means that the number 7 followed by 5 are left on the
  623.       stack. The - subtracts the last entry (5) on the stack from the
  624.       one before it (7), leaving the result 2.
  625.  
  626.     eg.     12 * (3 + 9)                    > eval 12 3 9 + *
  627.             (15 - 4) * (6 + 18)             > eval 15 4 - 6 18 + *
  628.             (6 * ((87 + 13) / (2 * 25)))    > eval 6 87 13 + 2 25 * / *
  629.  
  630.     * EVAL only performs 32 bit integer arithmetic.
  631.       Negative numbers are prefixed with - .(hexadecimal they are
  632.       shown as a 31 bit integer with bit 32 set, as usual)
  633.       Prefixing positive numbers with + is optional.
  634.  
  635.     eg.     eval +5 -3 +    {results in 2  hex:$00000002}
  636.             eval -5 3 +     {results in -2 hex:$fffffffe}
  637.  
  638.     * EVAL supports decimal, hexadecimal and binary  numbers.
  639.       If you prefix the number with $, the number is hex
  640.       If you prefix the number with %, it is binary.
  641.     Programmers: For BPTR-APTR conversion you can use & to specify
  642.       a hexadecimal APTR when asked for a BPTR and vice versa with Â§.
  643.     eg.     eval $c00000 $a0 16 * +
  644.  
  645.     * EVAL can also be used to perform base conversions (to dec or hex)
  646.     eg.     eval $ca
  647.             eval %10110001
  648.             eval 45
  649.             eval &5a8
  650.  
  651.     * The operators + - * / & | @ ! are supported.
  652.       The & allows logical AND'ing. And | allows logical OR'ing.
  653.       The @ is similar to PEEK in BASIC.
  654.       Conversely, ! is similar to POKE in BASIC
  655.     eg.     eval $80 $21 $08 | | $aa &
  656.             eval $67 %11001011 &
  657.  
  658.             eval $c00000 @
  659.       This prints out the long word in memory locations $c00000 -
  660.       $c00003.
  661.  
  662.             eval $aa55aa55aa $40000 !
  663.       This pokes the long word $aa55aa55aa into locations $40000
  664.       thru $40003.
  665.  
  666.     * For environment handling you can specify the value of an
  667.       environment variable with | followed by the name.
  668.       To store the result in a variable, redirect the output.
  669.  
  670.     eg.     eval >ENV:aa |ENV:bb 1 +
  671.       This adds 1 to the value in ENV:bb and stores the result in ENV:aa
  672.     * If the result was 0 an error (fail-level 10) will be returned.
  673.       If it was negative, a warn (5) returns.
  674.       (Not when redirecting output)
  675. ------------------------------------------------------------------------
  676. EXECUTE source
  677.  
  678.     * Executes the ZShell script file of name 'source'. All ZShell
  679.       commands, as well as commands from disk are valid within a
  680.       script file.
  681.     * If the S-protection-bit (see PROTECT) of 'source' is set, you do
  682.       not need to type EXECUTE, just use 'source' like a command.
  683.     * You can break scripts by pressing CTRL-D.
  684.  
  685.     eg.   execute install_hard_disk
  686. ------------------------------------------------------------------------
  687. FAILAT [failat_level]
  688.  
  689.     * FAILAT sets the error code level at which scripts (and multiple
  690.       commands on one line) will be aborted. The default level is 10.
  691.       Most commands return 10 as an error, (20 for serious errors)
  692.       while compilers returning Warning type errors will return 5.
  693.       Hence, the default of 10 will allow Warnings to occur without
  694.       the script (or line) being aborted. If a command returned an error
  695.       code higher than the failat level, it will be printed out on the
  696.       window.
  697.  
  698.     eg.     failat 20       {sets failat level to 20}
  699.  
  700.     * If you do not specify a failat level, the current setting is
  701.       shown.
  702.  
  703.     eg.     failat
  704. ------------------------------------------------------------------------
  705. FAULT [error_number]
  706.  
  707.     * FAULT displays a textual error message of the given DOS-error-number
  708.  
  709.     eg.     fault 103
  710.       {says something like 'no free store', go and buy some
  711.        extra memory :) }
  712. ------------------------------------------------------------------------
  713. FILENOTE file|directory comment
  714.  
  715.     * FILENOTE creates or changes a comment of the file or directory.
  716.       This comment can be up to 116 characters long and can be displayed
  717.       using the LIST command. It is useful if the filename does not say
  718.       what for this file is. Add a comment to this file and you will
  719.       forever know what this file does.
  720.  
  721.     eg.     filenote devs:mountlist "This is used by the mount command"
  722. ------------------------------------------------------------------------
  723. HELP [topic]
  724.  
  725.     * HELP shows the lines of this manual corresponding to the topic.
  726.       To see all topics available, type 'HELP CONTENTS' . Make sure that
  727.       this manual is in your command search path (see PATH).
  728.       For some help about a command you can also type 'commandname ?' .
  729.       Type only '?' to read the manual with MORE (see MORE).
  730.     Note: Instead of typing the topic you can only type some starting
  731.           characters.
  732.     Note: The manual is only loaded once and will stay in memory till
  733.           you use 'AVAIL -C' or 'ENDCLI -C'
  734.  
  735.     eg.    help contents       {'help cont' will do the same}
  736.            help copy
  737.            makedir ?
  738.            ?
  739.  
  740.     * HELP without a topic lists the names of all available ZShell
  741.       commands to the screen. This does not need the manual.
  742.       HELP can also be invoked by hitting the HELP key.
  743.  
  744.     eg.   help
  745. ------------------------------------------------------------------------
  746. HTYPE source
  747.  
  748.     * HTYPE outputs a hex listing of the file specified. Output is the
  749.       same as the M command. SPACE pauses the listing, BACKSPACE
  750.       gets it going again, and CTRL-C will abort the listing.
  751.  
  752.     eg.     htype c:list
  753. ------------------------------------------------------------------------
  754. IF [NOT][WARN][ERROR][FAIL][EXISTS file]
  755.  
  756.     * The IF command allows conditional execution of statements
  757.       following it.
  758.     * If the condition specified is true, then execution continues
  759.       after the IF statement until either an ENDIF or ELSE statement
  760.       is encountered. If it is an ELSE statement, then all statements
  761.       between the ELSE and the closing ENDIF are skipped.
  762.     * If the condition is false, then all statements after the IF and
  763.       before either an ENDIF or ELSE statement are skipped. If an ELSE
  764.       is encountered, then execution continues for all statements after
  765.       the ELSE and before the closing ENDIF.
  766.     * IF can examine the state of the return code from the last command
  767.       execute with WARN, ERROR, and FAIL tests. You can test for the
  768.       non existence of such a state by including the optional NOT
  769.       parameter.
  770.  
  771.     eg.     IF WARN
  772.                     echo "last command returned warnings"
  773.             ELSE
  774.                     echo "last command did not return warnings"
  775.             ENDIF
  776.  
  777.             IF NOT FAIL
  778.                     echo "last command did not fail"
  779.             ENDIF
  780.  
  781.     * IF can also test for the existence of a file or directory.
  782.  
  783.     eg.     IF EXISTS :system/format
  784.                     echo "this disk has a format command"
  785.                     echo "you can look yourself. I'm not joking"
  786.             ENDIF
  787.  
  788.             IF NOT EXISTS ram:ed
  789.                     copy c:ed ram:
  790.             ENDIF
  791. ------------------------------------------------------------------------
  792. INFO
  793.  
  794.     * Lists lots of information about all available volumes (like disks).
  795.       These columns mean:
  796.       NAME: Name of the device containing the volume
  797.       UNIT: Unitnumber, not very interesting
  798.       SYS:  Filesystem, can be one of:
  799.             OFS : Oldfilesystem (old fashioned and slow)
  800.             FFS : Fastfilesystem (needs at least Kick 2.0)
  801.             INO/INF : International OFS/FFS
  802.             DCO/DCF : Directory Cache OFS/FFS (needs Kick 3.0)
  803.             MSD : CrossDOS Filesystem (MessyDOS)
  804.             ??? : Unknown
  805.       SIZE: Maximum useable size of the Volume in KBytes (1024 Bytes)
  806.       FREE: Free/useable size in KBytes
  807.       FULL: Ratio between used size and maximum size
  808.       BLOCK: Size of a single block in Bytes
  809.       STATUS: Says if it is possible to write to that volume
  810.       ERR:  Number of soft errors, I only saw 0 yet
  811.       VOLUME: Name of the volume (name of the disk).
  812.     * Note: It would not make sense to show the free size in Bytes,
  813.       because space can only be allocated in whole blocks and one
  814.       block is at least 488 Bytes large.
  815.  
  816.     eg.    info
  817. ------------------------------------------------------------------------
  818. JOIN [sourcefile1] [sourcefile2] ... destfile
  819.  
  820.     * JOIN concatenates one or more files to form a new file (destfile).
  821.  
  822.     eg.     join fred.doc roy.doc dog.doc mydocs.doc
  823. ------------------------------------------------------------------------
  824. LAB label
  825.  
  826.     * LAB specifies a destination (label) for the SKIP command. See SKIP.
  827.  
  828. ------------------------------------------------------------------------
  829. LIST [-R] [-Q] [source]
  830.  
  831.     * Lists the directory of the 'source' to the screen. Hitting space
  832.       will pause the listing and backspace will continue it.
  833.     * LIST acts similar to DIR (see DIR), but outputs more information:
  834.      - Hidden files will be shown
  835.      - Shows the date and time of the last change (date-of-last-change)
  836.      - Shows the protection-bits (see PROTECT)
  837.      - If available, the comment will be shown (see FILENOTE)
  838.     * LIST supports recursive listing. That means the contents of all
  839.       subdirectories are shown. To use it, specify the -r option.
  840.  
  841.     eg.     list
  842.             list sys:system
  843.             list -q df0:
  844.             list -r -q *.info    {show all INFO-files in the current and
  845.                                  in the sub-directories}
  846.             list -r ram:~*.info  {show all except *.info files in RAM:}
  847. ------------------------------------------------------------------------
  848. LOCK device ON|OFF
  849.  
  850.     * 'LOCK device ON' locks the write-access to a device
  851.     eg.     lock df0: on
  852.       will make it impossible to write to or change something on the
  853.       disk inserted in DF0:
  854.     * 'LOCK device OFF' makes write-access to a device possible again.
  855.  
  856.     eg.     lock dh0: on
  857.             lock dh0: off
  858. ------------------------------------------------------------------------
  859. MAKEDIR [directory1] [directory2] ...
  860.  
  861.     * Creates one or more directories of the names specified.
  862.  
  863.     eg.     makedir temp
  864.             makedir c l s libs devs fonts
  865.             makedir devs/printers ram:c
  866. ------------------------------------------------------------------------
  867. MEMCLK ON|OFF|ALARM
  868.  
  869.     * MEMCLK is for using a clock shown in the border of the actual
  870.       window. The current total free and chip free memory are also
  871.       shown. It can do a DisplayBeep (short flash on all screens) at a
  872.       specified time. The DisplayBeep can be converted into a sound
  873.       by using a PD-utility for that or using Workbench 3.0 .
  874.     * Programmers: There will be only one 'MemClock'-Task, even if you
  875.       run MEMCLK on many windows  -> memory and CPU saving.
  876.     * MEMCLK ON switches the clock on or does nothing if it already
  877.       exist.
  878.     * MEMCLK OFF switches the clock off or does nothing if it does not
  879.       exist.
  880.     * MEMCLK ALARM shows the alarm time. If you type a time (see DATE)
  881.       after ALARM, you set the alarm time. (You cannot set an alarm date
  882.       or multiple times.) ( MEMCLK A is the same as MEMCLK ALARM )
  883.  
  884.     eg.     memclk on
  885.             memclk off
  886.             memclk alarm
  887.             memclk a 21:34:07
  888.  
  889.     * The clock can also be used on non-ZShell windows, but MAKE SURE
  890.       that the clock is switched OFF BEFORE the window is CLOSED,
  891.       otherwise you will see THE GURU (or an ALERT with KS2.0+)
  892.       For example, to get a clock on the Workbench, type in ZShell
  893.             wait 5;memclk on
  894.       and press RETURN. Now you have 5 seconds to click on the Workbench
  895.       screen. For removing use 'wait 5;memclk off' .
  896. ------------------------------------------------------------------------
  897. MORE source [line count]
  898.  
  899.     * MORE acts as a simple (ANSI) text file viewer. By default, it will
  900.       show 19 lines of a text file, then wait for some user input.
  901.       To move around in the text, you can use the CURSOR-KEYS:
  902.         UP        : Go one line up
  903.         DOWN      : Go one line down
  904.         SHIFT-UP  : Go one page (default 19 lines) up
  905.         SHIFT-DOWN: Go one page down
  906.         LEFT      : Go to the top of the text
  907.         RIGHT     : Go to the bottom of the text
  908.  
  909.       The key 'P' creates a printout of the text (sends the text to PRT:)
  910.  
  911.       The key 'S' will prompt you what to search for. If you just press
  912.       RETURN, then the last item will be searched for. Searching begins
  913.       at the second top line shown. If the item is found, the line, it
  914.       is in, is displayed as the first line.
  915.  
  916.       Typing any other key will abort you back to the shell.
  917.  
  918.     eg.     more readme
  919.  
  920.     * Specifying the optional line count will allow you to show more or
  921.       less than the default 19 lines. {Very useful for large borderless
  922.       PAL screens or small windows}
  923.  
  924.     eg.     more contents 12
  925.             more super.doc 25
  926. ------------------------------------------------------------------------
  927. NEWCLI [new_window [start_script]]
  928.  
  929.     * NEWCLI without arguments starts a new ZShell process.
  930.       Things like paths and history buffer (!) will be copied to the
  931.       new ZShell. The input/output window is created with the default
  932.       specification. The startup script will be S:ZStart.
  933.     * 'NEWCLI new_window' is used for opening a window with different
  934.       specifications than the default. If new_window is a point (.)
  935.       there will be no window and output will be send to NIL: , if there
  936.       is an input necessary, the ZShell process will just end (for
  937.       example at a end of the script S:ZStart).
  938.     * 'NEWCLI new_window start_script' is used if the name of the
  939.       startup script should be different from S:ZStart.
  940.  
  941.     eg.     newcli
  942.             newcli con:30/30/400/50/Shell
  943.             newcli con:0/18/640/182/ZShell/CLOSE/NOSIZE/NOBORDER
  944.         {this one only with KS2.0+, maximum of 80 chars per line}
  945.             newcli con:50/20/500/100/Hello s:shell-startup
  946.             newcli . ram:doassigns
  947. ------------------------------------------------------------------------
  948. PATH [-C] [path1] [path2] [path3] [path4] ...
  949.  
  950.     * PATH defines the command search path used by ZShell when searching
  951.       for disk based commands (see EXECUTING COMMANDS) .
  952.       If you give the '-c' option, the old search path will be cleared
  953.       and the new search path consist only of the given paths.
  954.  
  955.     eg.     path -c c: ram:c df0: df1:
  956.       This example will make it so that if you type a command which is
  957.       not internal in ZShell, the resident list will be searched for it,
  958.       then the current directory, then the c: directory, then the ram:c
  959.       directory, then df0:, and finally df1:
  960.  
  961.     * By omitting the -c option, you can add a number of paths onto the
  962.       existing command search path.
  963.  
  964.     eg.     path df2:c
  965.       Adds the directory df2:c onto the existing command search path.
  966.  
  967.     eg.     path df1:bin df1:myprogs
  968.       Adds the two directories df1:bin and df1:myprogs onto the existing
  969.       command search path.
  970.  
  971.     * If, however, you type path with no parameters, the current search
  972.       path will be displayed.
  973.  
  974.     PATH is not yet compatible to the AmigaDOS Path command.
  975. ------------------------------------------------------------------------
  976. PROMPT [string]
  977.  
  978.     * If no parameter is typed, the current prompt setting will be
  979.       shown.
  980.  
  981.     eg.     prompt
  982.  
  983.     * If a prompt string is specified, the current prompt setting
  984.       will be changed to that string. The character '%' specifies a
  985.       special prompt option.
  986.  
  987.             %p      Insert current directory name.
  988.             %n      Insert CLI number.
  989.             %l      Insert current input line number (for fun!)
  990.  
  991.     eg.   prompt "%p> "     {default prompt. Show current directory + '>'}
  992.           prompt "Hello ."  {shows 'Hello .' at the start of every line}
  993.           prompt "%n.%p> "  {show CLI number, then current dir, then '>'}
  994. ------------------------------------------------------------------------
  995. PROTECT [filename] [h|s|p|a|r|w|e|d]
  996.  
  997.     * Allows you to alter/see the protection bits associated with a file
  998.       or a directory (default: current directory).
  999.  
  1000.     * PROTECT filename
  1001.       Shows the protection bits for the file specified.
  1002.  
  1003.     eg.   protect editor
  1004.  
  1005.     * PROTECT filename [h|s|p|a|r|w|e|d]
  1006.       Toggles the specified protection bits on the file.
  1007.  
  1008.     eg.   protect editor pd
  1009.       If 'editor' was already pure, then the pure bit would be reset.
  1010.       If 'editor' was not pure, then the pure bit would be set.
  1011.       If 'editor' was deletable, then the delete bit would be reset.
  1012.       If 'editor' was not deletable, then the delete bit would be set.
  1013.  
  1014.     eg.   protect game hprwd
  1015.     eg.   protect monitor hsparwed
  1016.  
  1017.     Bits:   'h'     hidden  V1.3
  1018.             's'     script  V1.3
  1019.             'p'     pure    V1.3
  1020.             'a'     archive V1.3
  1021.             'r'     readable
  1022.             'w'     writable
  1023.             'e'     executable
  1024.             'd'     deletable       <- V1.2 only understands this bit
  1025. ------------------------------------------------------------------------
  1026. QUIT [error_code]
  1027.  
  1028.     * QUIT forces a script file to end, and return to the shell.
  1029.       An optional error code can be passed back (ie. 5=WARN 10=ERROR
  1030.       15=BAD 20=FAIL etc).
  1031.  
  1032.     eg.     quit 5
  1033.             quit
  1034. ------------------------------------------------------------------------
  1035. RELABEL drive newname
  1036.  
  1037.     * RELABEL renames the disk specified with the newname given.
  1038.  
  1039.     eg.     relabel Empty: MY_DISK
  1040.             relabel df0: FISHMONGER
  1041. ------------------------------------------------------------------------
  1042. RENAME source destination
  1043.  
  1044.     * Renames the file or directory of name 'source' to that of
  1045.       'destination'. You can use this to move files on a disk.
  1046.  
  1047.     eg.     rename df0:c/list df0:ls        {moves and renames}
  1048.             rename ed Editor                {just renames}
  1049. ------------------------------------------------------------------------
  1050. RESIDENT [command1] [command2] ...
  1051.  
  1052.     * RESIDENT allows you load commands into memory, such that they
  1053.       will execute immediately, rather than be loaded from disk all the
  1054.       time. The benefit of RESIDENT over saving commands on the RAM:
  1055.       disk is that only one copy of the command is in memory all the
  1056.       time. RAM: based commands will use up twice as much memory when
  1057.       the command is being executed.
  1058.  
  1059.     * The limitation of RESIDENT is that only certain commands will
  1060.       work. Generally, all commands which have their PURE bit (see
  1061.       PROTECT command) set can be made RESIDENTABLE. However, RESIDENT
  1062.       does not check whether the PURE bit is set before loading, and
  1063.       hence you can try out commands to see if they work. They'll
  1064.       always work the first time. Its only when executing the 2nd
  1065.       time that the Amiga will likely crash.
  1066.     NB: Crunched programs will most likely not work.
  1067.  
  1068.     * Typing RESIDENT with no parameters will show the current list
  1069.       of resident commands:
  1070.       ADRESS is for programmers
  1071.       USECOUNT says how many times it is used right now
  1072.                ROM internal residents have negative values
  1073.       NAME means the name  (hard to guess :)
  1074.  
  1075.     * Typing one or more command names after RESIDENT will make those
  1076.       commands resident. ZShell will search the command search path
  1077.       to try and find them.
  1078.  
  1079.     eg.     resident c/list c/cd c/date c/avail
  1080.             resident ed
  1081.  
  1082.     RESIDENT is compatible with the AmigaDOS Resident command.
  1083. ------------------------------------------------------------------------
  1084. SEARCH file search_string
  1085.  
  1086.     * SEARCH searches for the search_string in the file. The file can
  1087.       be a binary (eg. executable) or a text. Each occurance
  1088.       will be printed on the window with highlighted search_string.
  1089.       If the file is a text, the whole line will be printed.
  1090.       If it is a binary file, it will be printed from the occurance
  1091.       to the next NULL or LF.
  1092.     * Searching is case independent (of course!).
  1093.     * To search for a string at the beginning of a line (textfile only)
  1094.       put a point (.) before the search_string.
  1095.  
  1096.     eg.     search zshell.doc "binary (eg."
  1097.             search s:startup-sequence .assign
  1098.                 {show all assigns, but not 'resident assign'}
  1099.             search c:mount $ver:    {show version number and date,
  1100.                               should work with all newer executables}
  1101. ------------------------------------------------------------------------
  1102. SETCLOCK LOAD|SAVE
  1103.  
  1104.     * SETCLOCK only works if you have a battery backed up clock (BBUC).
  1105.       It accesses the adresses $DC0000 and I do not know if it works
  1106.       with very old or very new (A1200) clocks.
  1107.     * SETCLOCK LOAD sets the systemtime (you can see the systemtime with
  1108.       DATE or MEMCLK) to the time in the BBUC (hopefully this is the
  1109.       right time).
  1110.     * SETCLOCK SAVE first resets the BBUC, then stores the systemtime
  1111.       to the BBUC.
  1112.       To set the BBUC to the right time, use DATE to set the correct
  1113.       date and time, then use SETCLOCK SAVE.
  1114.  
  1115.     eg.     setclock load
  1116.             setclock save
  1117. ------------------------------------------------------------------------
  1118. SETDATE file|directory [date/time]
  1119.  
  1120.     * SETDATE changes the date-of-last-change (DOLC) of a file or
  1121.       directory. The DOLC can be shown by simply listing this file with
  1122.       LIST (see LIST).
  1123.     * SETDATE with no date/time given sets the DOLC to the systemtime
  1124.       (see DATE,SETCLOCK).
  1125.     * If you want to set the DOLC to a special date you have to specify
  1126.       the date or time or both in a format described at 'DATE'.
  1127.  
  1128.     eg.     setdate ram:newthings
  1129.             setdate devs:mountlist 21.8.71      {very old}
  1130.             setdate murks 18:09:00 12-24-94     {future}
  1131. ------------------------------------------------------------------------
  1132. SKIP label
  1133.  
  1134.     * SKIP searches for the label within the current script file. If it
  1135.       finds it, execution continues from that point onwards. Labels
  1136.       are specified using the LAB command.
  1137.  
  1138.     eg.     lab myloop
  1139.             dir ram:
  1140.             ask "list ram again? "
  1141.             if warn
  1142.                     skip myloop
  1143.             endif
  1144. ------------------------------------------------------------------------
  1145. STACK [size]
  1146.  
  1147.     * Allows you to view or alter the current stack size.
  1148.  
  1149.     eg.     stack            {shows the current stack size}
  1150.             stack 30000      {sets current stack = 30000 bytes}
  1151. ------------------------------------------------------------------------
  1152. TYPE source
  1153.  
  1154.     * Prints to the screen the ASCII/ANSI text file specified as 'source'.
  1155.       Hitting any key will pause the listing. Backspace will restart it.
  1156.       CTRL-C will abort the listing.
  1157.  
  1158.     eg.     type readme
  1159. ------------------------------------------------------------------------
  1160. UNALIAS [alias1] [alias2] [alias3] [alias4] ...
  1161.  
  1162.     * UNALIAS removes one or more alias definitions from the alias list.
  1163.  
  1164.     eg.     alias f1 "cd df0:;dir^M"
  1165.             alias f2 "cd df1:;dir^M"
  1166.             ...
  1167.  
  1168.             alias f10 "ed df1:s/startup-sequence^M"
  1169.             ...
  1170.  
  1171.             unalias f1 f2 f3 f4 f5 f6 f7 f8 f9
  1172.             ...
  1173.  
  1174.             unalias f10
  1175. ------------------------------------------------------------------------
  1176. WAIT timeout
  1177.  
  1178.     * WAIT halts processing for the time given. Timeout is in seconds.
  1179.       You can abort this with CTRL-C.
  1180.  
  1181.     eg.     echo "I'll wait a minute"
  1182.             wait 60
  1183. ------------------------------------------------------------------------
  1184. Comments
  1185. ; blah blah blah blah
  1186. * etc etc etc
  1187. # hello ma
  1188.  
  1189.     * Placing a semi-colon, an asterisk or a hash character as the 1st
  1190.       character in the line of a script file allows you to place comments
  1191.       in it.
  1192.  
  1193.     eg.   ; This is a comment line
  1194.  
  1195.     * If you want to place a comment at the end of a line, you have to
  1196.       put ;# before it.
  1197.  
  1198.     eg.   info;#to see something interesting
  1199. ------------------------------------------------------------------------
  1200. BUILTIN COMMANDS FOR PROGRAMMERS AND ADVANCED USERS :
  1201. =====================================================
  1202. These commands are thought for users with a deeper knowledge of the
  1203. system. Maybe they are also useful for those not knowing of the system
  1204. internals (like beginners). Just try the examples to find that out.
  1205. ------------------------------------------------------------------------
  1206. BREAK task_description [signalmask|C|D|E|F]
  1207.  
  1208.     * BREAK sets some signals at a given task
  1209.     * task_description can be one of:
  1210.       - task/process name (case dependent !)
  1211.       - task/process adress
  1212.       - CLI-process number (one from 1 to 20)
  1213.       - zero (0) for this task
  1214.       It will be checked if the node-type field contains TASK or PROCESS
  1215.     * signalmask is a longword; all bits, which should be signalled,
  1216.       must be 1 . Alternatively you can specify c,d,e or f to set
  1217.       the according signal to CTRL-C,-D,-E or -F. (CTRL-C is bit 12)
  1218.     * BREAK without signalmask (and c,d,e,f) given sets all signals the
  1219.       task is waiting for.
  1220.  
  1221.     eg.     break RexxMaster    {and it will be gone...}
  1222.             break Exchange c    {Exchange will get itself off too}
  1223.  
  1224.     eg. If 2 ZShells are running. The one with the CLI-number 1 (get that
  1225.         out with prompt %n) lists a very large directory. You can break
  1226.         that by using the other ZShell typing:
  1227.             break 1 c
  1228.         Thats the same like you pressed CTRL-C on the ZShell number 1.
  1229. ------------------------------------------------------------------------
  1230. CHECK ON|OFF
  1231.  
  1232.     * Activates or deactivates the programmers status line.
  1233.  
  1234.     eg.     check on        {activates status line}
  1235.             check off       {deactivates status line}
  1236.  
  1237.       The status line (if activated) will only appear once a disk based
  1238.     or resident program has been executed. The line appears as follows:
  1239.  
  1240.     Result2: 0  time = 00:00:23.66  changes-> chip: 0  fast: 0  total: 0
  1241.  
  1242.     Result2 shows the error code that can be asked for with IoErr.
  1243.     Time shows how long the program took to execute in hours,
  1244.     minutes, seconds, hundredths (This time does NOT include the time
  1245.     it takes to load the program from disk). Changes show if the program
  1246.     has left any memory still allocated. i.e. if 200 bytes of chip
  1247.     memory were left allocated by the program, then you see 'chip: -200'.
  1248.     The Return code (the program returns in D0) is shown as Fail-Level.
  1249. ------------------------------------------------------------------------
  1250. CTRL [max_14_chars | -C [ignore_name]]
  1251.  
  1252.     * CTRL is for command-line-editing-keys-definitions (great word :).
  1253.       In other words: You can change the meaning of keys pressed with
  1254.       CTRL (Control) and some other keys (TAB ^I, Backspace ^H,
  1255.       Return ^M, Shift-Return ^J, ESC ^[).
  1256.     * 'CTRL' without arguments shows the current definitions.
  1257.     eg.     ctrl
  1258.  
  1259.     * 'CTRL QWSEAX[IYHJMLn' (case dependent) sets the default settings.
  1260.       To change something, just change the character corresponding to
  1261.       the key pressed with CTRL. See some lines above for some CTRL-
  1262.       equivalents ( eg. TAB is same as CTRL-I ).
  1263.       You may get confused if you define one key twice.
  1264.     eg.     ctrl QWSEIX[T   {complete filename with TAB,
  1265.                              CTRL-T does what TAB did}
  1266.             ctrl QWKU       {half line deleting like KS2.0 shell}
  1267.             ctrl QWSEAXTIYMJH {...and you will have lots of fun}
  1268.  
  1269.     * There is a special meaning with the 14th character. This is by
  1270.       default the point (.), which is displayed as a 'n' (don't get
  1271.       confused). The point has a special meaning in some commands
  1272.       (ECHO,SEARCH,PUTMSG,dir back,force disk, abbreviation)
  1273.       and can be redefined using 'CTRL QWSEAX[IYHJML.', but replace the
  1274.       point by the character desired. The ASCII code must be between
  1275.       32 and 64.
  1276.     eg.     ctrl QWSEIX[TYHJML#  {# is now a special character,
  1277.                     TAB completes filename, CTRL-T is one word forward}
  1278.  
  1279.     * 'CTRL -C' shows the ignored filenames when filenamecompleting.
  1280.       By default this is unset. (-C means here -Complete)
  1281.     * 'CTRL -C filedescription' defines which names are not completed.
  1282.       'filedescription' contains wildcard(s) in most cases.
  1283.     eg.     ctrl -c         {display ignore_name}
  1284.             ctrl -c *.info  {ignore *.info-files}
  1285.             ctrl -c *.info|*.bak {ignore files ending in .info and .bak}
  1286.             ctrl -c ~*.tex|*.dvi {complete only *.tex and *.dvi-files}
  1287.             ctrl -c ""      {unset ignore_name}
  1288. ------------------------------------------------------------------------
  1289. DISKCHANGE device
  1290.  
  1291.     * Needed for devices which do not detect a diskchange.
  1292.  
  1293.     eg.     mount rad:;diskchange rad:
  1294.        Makes your rad:-disk appear on the Workbench.
  1295.             diskchange ram:
  1296.        If the ram-disk does not exist yet, the handler will be started
  1297.        (and the ram-disk can appear on Workbench when done before LOADWB)
  1298. ------------------------------------------------------------------------
  1299. DIE device
  1300.  
  1301.     * DIE lets the handler of a device end itself.
  1302.       It seems not to work with most handlers.
  1303. ------------------------------------------------------------------------
  1304. GETMSG [portname]
  1305.  
  1306.     * GETMSG waits for a message arriving at the process-internal
  1307.       messageport (pr_MsgPort). The message will be shown, strings
  1308.       will be tried to detected (this could cause lots of enforcer hits).
  1309.       Then you will be asked if to reply the message. 'y' replies it
  1310.       and should be used normally. 'e' replies and gets back to waiting
  1311.       mode again. Abort waiting is possible with CTRL-C.
  1312.     * 'GETMSG portname' gives the process-internal port the given name.
  1313.       Then it behaves as described above.
  1314.     * See PUTMSG for examples.
  1315. ------------------------------------------------------------------------
  1316. LOCATE [-C] lock|filename
  1317.  
  1318.     * 'LOCATE lockadress' (lockadress is a BPTR) shows information about
  1319.       that lock structure. fl_Access must be -1 (write) or -2 (read).
  1320.     * 'LOCATE filename_or_dirname' gets an ACCESS_READ lock structure on
  1321.       that file/dir. (If you type -1 after the filename you should get
  1322.       an ACCESS_WRITE lock, but there seems to be an error in DOS !)
  1323.     * 'LOCATE -C lockadress' unlocks (removes) the lock structure.
  1324.  
  1325.     eg.     locate &21f45c      {shows lock on adress $21f45c}
  1326.             locate $9f5b7       {shows lock with BPTR $9f5b7}
  1327.             locate -c $9f5b7    {removes this lock}
  1328.             locate ram:rdit     {tries to read-lock ram:rdit}
  1329.             locate ram:rdit -2  {same as above}
  1330.             locate c:mount -1   {got a write-lock on c:mount ?}
  1331. ------------------------------------------------------------------------
  1332. M [start_address] [end_address]
  1333.  
  1334.     * M is a memory contents dumping command.
  1335.     * Typing M with a start and end address will display the hex and
  1336.       ASCII contents of those bytes in the memory locations specified.
  1337.     * Typing M with only a start address will display 160 bytes
  1338.       starting at the location specified.
  1339.     * Typing M with no parameters will display 160 bytes starting
  1340.       from the current memory location.
  1341.     * The current memory location is always one location higher than
  1342.       the last location shown by a prior M command.
  1343.  
  1344.     eg.   m $70000 $77fff
  1345.           m $fc0000
  1346.           m
  1347. ------------------------------------------------------------------------
  1348. PUTMSG port_description [number1|string1] [number2|string2] ...
  1349.  
  1350.     * PUTMSG is useful for testing programms which wait for a message,
  1351.       or to reactivate a task that waits for a message which will never
  1352.       arrive. PUTMSG sends a message to the given messageport.
  1353.     * port_description can be given in 5 (!) ways:
  1354.       - Name of the messageport
  1355.       - Adress of the messageport
  1356.       - 3 ways of a task_description, see BREAK. This MUST be a Process
  1357.         because the process-internal messageport will be used.
  1358.     * number|string is a longword number or a string. If it is a number,
  1359.       it will just be added to the message. If it is a string, a
  1360.       adress pointing to this string will be added to the message.
  1361.       If number1|string1 was a point (.), the message will be initialized
  1362.       as an DOS-Packet.
  1363.     * After sending the message PUTMSG will wait for the reply and show
  1364.       that reply like GETMSG. Abort waiting with CTRL-C.
  1365.     WARNING: Your machine might CRASH if you send a message to a
  1366.       (Process-internal) port that is not waiting for this message.
  1367.     NOTE: PUTMSG without arguments makes a DisplayBeep (even without a
  1368.       window) and outputs the internal register value of A5.
  1369.  
  1370.     eg.     putmsg testtask $21fd68 12
  1371.             putmsg testport "Hello World!"
  1372.  
  1373.       If you have 2 ZShells, execute in the one with CLI-number 1
  1374.       'getmsg'. Activate the other shell and type
  1375.             putmsg 1 "like some chatting ?"
  1376.       The ZShell no. 1 should display that and prompt 'reply ?'. Answer
  1377.       'y' and the message goes back again.
  1378.       Now try 'getmsg wurgutz' at one ZShell and 'putmsg wurgutz $abcd'
  1379.       on the other. Do not forget to reply.
  1380.  
  1381.     * You can use PUTMSG to use the AREXX interface of a programm. This
  1382.       works with some programms even with Kick 1.3 and no AREXX-Package.
  1383.     eg.     putmsg showdvi 0 0 0 0 0 "tofront" {gets ShowDVI to front}
  1384.       Instead of the first 0 you sometimes must write the adress of
  1385.       this task. If available replace the second 0 with a pointer to
  1386.       the rexxsyslib.library. The third 0 is called rm_Action. I do not
  1387.       know what it is for. The fourth and fifth are results, only
  1388.       interesting in the reply.
  1389.     eg.     putmsg showdvi 0 0 0 0 0 "loadnew tex.dvi"
  1390.  
  1391.     * Specify a point as first number if you want to send a DOS-Packet.
  1392.     eg.     putmsg DF0 . 0 1023 0 0 -1     {same as LOCK DF0: ON}
  1393.     If you get $FFFFFFFF as 4th longword, it was successful.
  1394.     (with Kick 1.3 you need to use FileSystem instead of DF0)
  1395. ------------------------------------------------------------------------
  1396. RECOPY [-R] [directory|file_description]
  1397.  
  1398.     * RECOPY copies a file to the same directory with a slight different
  1399.       name (new file), then deletes the old file and renames the
  1400.       new file like the old file was called. After that the new file
  1401.       is the same as the old file was (date and comment are copied too).
  1402.       You might say: What is the use of that ? - Answer: You can process
  1403.       lots of files with a LoadSeg patch or a patch at the device.
  1404.       Depending on the patch it sometimes would be a good idea to run a
  1405.       diskoptimizer after RECOPYing.
  1406.  
  1407.     * In other words: Put some powerpacked textfiles in RAM: then run the
  1408.       PowerPackerPatcher (from Nico Francois), then do 'RECOPY RAM:'.
  1409.       After that these textfiles should be unpacked.
  1410.       Similarly you can crunch whole disks (in DF0:) running a stacker-
  1411.       like programm on DF0: then doing 'RECOPY -R DF0:'. This is tested
  1412.       with EPU and might also work with XFH (from the XPK-Package).
  1413.  
  1414.     * The option -R (recursive) does the same as in LIST.
  1415.     * If no directory is specified, the current directory is taken.
  1416.     * If you want to give a file_description make sure that it contains
  1417.       at least one wildcard. For specifying a single file put a '|'
  1418.       (vertical line) behind it.
  1419.  
  1420.     eg.     recopy -r
  1421.             recopy ram:~*.info      {do not RECOPY .info-files}
  1422.             recopy ram:bigdoc|      {RECOPY only the file bigdoc}
  1423. ------------------------------------------------------------------------
  1424. RESET
  1425.  
  1426.     * Performs a COLD reset of your Amiga. i.e. RAD will go, and you
  1427.       will get back fast memory that may have been disabled. And viruses
  1428.       should disappear.
  1429.       You will be asked before resetting.
  1430.  
  1431.     eg.     reset
  1432. ------------------------------------------------------------------------
  1433. SHOW D|I|L|M|P|R|S|T
  1434.  
  1435.     * Shows some information about important exec-lists:
  1436.       - Devices
  1437.       - Interrupts
  1438.       - Libraries
  1439.       - Memory
  1440.       - Ports (MessagePorts)
  1441.       - Resources
  1442.       - Semaphores
  1443.       - Tasks (and Processes)
  1444.       Use the first character of one of them as argument.
  1445.     * The output means:
  1446.       - Adress: hexadecimal start adress of the structure
  1447.       - Pri   : Priority, often unused
  1448.       - Ver   : Number of version  (only with D,L,R)
  1449.       - Rev   : Number of revision (only with D,L,R)
  1450.       - Name  : Name
  1451.       - State : Task state (only with T)
  1452.       - SignWait : Signals, a waiting task waits for (only with T)
  1453.       - PT    : Pr means Process, Ta means Task, Tm means Task with
  1454.                 Messageport like Process     (only with T)
  1455.     * If displaying the tasklist, the CLI-number (-> CLI ?:) and the
  1456.       loaded command will be shown at processes with cli-structure.
  1457.  
  1458.     eg.     show d          {have a look at the device-list}
  1459.             show Devices    {same as above}
  1460.             show t          {This is REAL MULTITASKING ! :) }
  1461. ------------------------------------------------------------------------
  1462. STRINGS sourcefile [count]
  1463.  
  1464.     * STRINGS displays all valid ASCII strings in a file which have a
  1465.       length greater than or equal to the count. If no count is given,
  1466.       a default of 10 characters is used.
  1467.     * This command is very useful for finding out which libraries a
  1468.       program uses.
  1469.  
  1470.     eg.     strings c:zshell 20
  1471.             strings c:mount
  1472. ------------------------------------------------------------------------
  1473. TASKPRI priority [task_description]
  1474.  
  1475.     * TASKPRI sets the priority of a task, it can be displayed using
  1476.       'SHOW T'. The priority must be between -127 and 128 and should
  1477.       be within -50 and 20 to avoid system-hangups. Standard is 0 .
  1478.     * task_description is same as described at BREAK.
  1479.     * With one argument TASKPRI sets the priority of this task.
  1480.     * If task_description is given, TASKPRI sets the priority of the
  1481.       given task.
  1482.     NOTE: I did not like to call this command CHANGETASKPRI, because
  1483.           this name is really too long.
  1484.  
  1485.     eg.     taskpri 2       {This task will be preferred}
  1486.             taskpri -1 3    {affects CLI no. 3}
  1487.             taskpri 4 Workbench
  1488. ------------------------------------------------------------------------
  1489. VEC
  1490.  
  1491.     * Displays some important execbase pointers, which give a good
  1492.       indication of whether a virus is present in your system.
  1493.       WarmCapture, CoolCapture, ColdCapture, KickTagPtr, KickMemPtr,
  1494.       and KickCheckSum are displayed. If any of these are are NOT
  1495.       zero, then either a virus, RAD, or virus protector or some
  1496.       other program that takes control of your machine when you
  1497.       reset, is present. If you suspect a virus, you may want to eject
  1498.       the disk from DF0: and type the RESET command, which should
  1499.       clear the virus. Now you should boot up on a clean disk.
  1500.  
  1501.     eg.     vec
  1502. ------------------------------------------------------------------------
  1503. ========================================================================
  1504. ------------------------------------------------------------------------
  1505. TIPS & HINTS
  1506.  
  1507.     Useful aliases:
  1508.             alias arexx "%1 %2 putmsg $1 0 0 0 0 0 \"$2\""
  1509.         So 'arexx showdvi "tofront"' is the same as the example in PUTMSG.
  1510.             alias run "%1 echo >T:X $1^J;newcli . T:X"
  1511.         This can be used to run programs, which do not need a window.
  1512.         If you substitute the point (.) with a window-description (like
  1513.         CON:10/10/400/100/Hallo ), you can run all commands with that.
  1514.         If you want some shortcuts like MessyDOS:
  1515.             alias md makedir
  1516.             alias ren rename
  1517.             alias del delete
  1518.             alias dc diskchange
  1519.         These are only needed for Kickstart 1.3:
  1520.             alias setenv "%1 %2 echo >ENV:$1 $2"
  1521.             alias getenv "%1 type ENV:$1"
  1522.             alias unsetenv "%1 delete ENV:$1"
  1523.  
  1524.     A script counting down from 10 to 0 (a bit complicated and slow) :
  1525.             failat 11 ; setenv helpenv 11
  1526.             lab backtohere
  1527.             copy >NIL: ENV:helpenv ENV:counter
  1528.             eval >ENV:helpenv |ENV:counter 1 -
  1529.             echo "Current number: " ; eval |ENV:helpenv
  1530.             if not error
  1531.             skip backtohere
  1532.             endif
  1533.  
  1534.     From Workbench assigns are most likely done by clicking an icon:
  1535.         For example if you have the assigns below in the script
  1536.             failat 10
  1537.             assign TEX: dh0:text/pastex
  1538.             assign MF: dh0:text/pastex/metafont
  1539.             putmsg
  1540.         you need to get a PROJECT ICON for that. Now define the default
  1541.         tool as ZSH (or ZShell) and a tooltype containing
  1542.             WINDOW=.
  1543.         (case sensitive). That's all. Failat 10 breaks the script if
  1544.         an error occurs. Putmsg flashes the screen to indicate that
  1545.         everything was successful. No window will be opened.
  1546. ------------------------------------------------------------------------
  1547. POSSIBILITIES FOR FUTURE IMPROVEMENTS
  1548.  
  1549.     * Make the PATH command AmigaDOS compatible (near future !).
  1550.     * Make use of more KICKSTART 2.0+ features like ASSIGN ADD.
  1551.     * Improve script file execution, like passing arguments,
  1552.       allow subroutine scripts and commands like FOR.
  1553.     * More flexible environment variable handling.
  1554.     * AmigaGuide (tm) compatible documentation.
  1555.     * Include MOUNT/MOVE/INSTALL command.
  1556.     * Rewrite COPY/DELETE.
  1557. ------------------------------------------------------------------------
  1558. HISTORY
  1559.  
  1560.     up to V1.3: See the source code of the ZShell V1.3 release
  1561.                 (for example on FISH disk 537).
  1562.                 Source: 103 KByte, Executable: 13 KByte, Doc 32 KByte.
  1563.     V2.0: There were so many changes, I think there is no sense
  1564.           in listing them all here, because it may be longer than
  1565.           this document. So just read this document or the source code.
  1566.           Source: 180 KByte, Executable: 25 KByte, Doc 72 KByte.
  1567. ------------------------------------------------------------------------
  1568. COPYRIGHT FOR THE V1.3 PART
  1569.  
  1570. ZSHELL IS FREELY DISTRIBUTABLE. YOU CAN DISTRIBUTE THIS AS LONG AS
  1571. THIS DOC FILE REMAINS WITH THE EXECUTABLE, AND THAT NO CHARGE IS MADE FOR
  1572. THEM (APART FROM A NOMINAL COPYING CHARGE). IF YOU FEEL LIKE SENDING
  1573. ME SOMETHING FOR THIS PROGRAM, SEND ME A POSTCARD!, A P.D. DISK, A
  1574. PROGRAM YOU'VE BEEN WORKING ON ,BUT DON'T SEND ME ANY MONEY (WELL, IF
  1575. YOU REALLY, REALLY WANT TO, I GUESS I COULD PUT UP WITH IT).
  1576. ------------------------------------------------------------------------
  1577. COPYRIGHT FOR THE V2.0 PART
  1578.  
  1579. This may be confusing, that there are two copyrights, but I (Martin) did
  1580. not like to change the original copyright notice. The parts belonging
  1581. to V2.0 are marked in the source code with 'V2.0'.
  1582. ZSHELL IS FREELY DISTRIBUTABLE. YOU CAN DISTRIBUTE THIS AS LONG AS
  1583. THE TWO EXECUTABLES REMAIN WITH THIS DOCUMENTATION TOGETHER (AND PLEASE
  1584. DISTRIBUTE THE SOURCE FILES WITH THEM TOO), AND THAT NO CHARGE IS MADE
  1585. FOR THEM (APART FROM A NOMINAL COPYING CHARGE).
  1586. IT IS NOT ALLOWED TO USE ZSHELL COMMERCIALLY !
  1587. I would like to get your comment on ZShell to see if anybody is using it
  1588. and what can be improved. See 'CORRESPONDENCE' for my adress.
  1589.  
  1590. Amiga, AmigaDOS, Workbench and Kickstart are registered trademarks of
  1591. Commodore-Amiga Inc.
  1592. ------------------------------------------------------------------------
  1593. DISCLAIMER
  1594.  
  1595. USE THE FILES OF THIS PACKAGE ON YOUR OWN RISK !
  1596. The authors are in no way responsible for what you are doing with it
  1597. or what it does to you or your soft- and hardware.
  1598. ------------------------------------------------------------------------
  1599. CREDITS FROM PAUL
  1600.  
  1601.     Many thanks to Wayne for his invaluable help in doing the history
  1602.     and command line editing parts of ZShell. Also, thanks to
  1603.     Tim Strachan who asked for the history stuff.
  1604.     ZShell was entirely written using Wayned by Wayne Hayter (various
  1605.     versions). And was assembled with A68K V2.61 by Charlie Gibbs. And
  1606.     linked with Blink V6.7 by the Software Distillery.
  1607. ------------------------------------------------------------------------
  1608. CORRESPONDENCE & BUG REPORTS
  1609.  
  1610.   * Please send any correspondence and/or bug reports referring V1.3
  1611.     to me at the address below:-
  1612.  
  1613.             Paul Hayter
  1614.             PO Box 331
  1615.             Ballina
  1616.             2478
  1617.             AUSTRALIA
  1618.  
  1619.   * Please send correspondence, bug reports, comments, suggestions
  1620.     for future improvements etc. referring V2.0 to this adress:
  1621.  
  1622.             Martin Gierich
  1623.             Narzissenweg 7
  1624.             76297 Stutensee
  1625.             GERMANY
  1626.  
  1627.     If you have EMAIL access, please send me one at this adress:
  1628.  
  1629.             uj3w@ibm3090.rz.uni-karlsruhe.de
  1630.  
  1631.     There might sometimes be some problems with the email system,
  1632.     so if I got the mail I will reply it.
  1633. ------------------------------------------------------------------------
  1634. $VER: ZShell.doc 2.0 (16.6.94)
  1635.